﻿using System;
using Sharp.Platform;
using Sharp.Platform.List;
using Sharp.Platform.Other;

namespace Sharp.WebBooter.Areas.Platform.Models
{
    [Title("系统接入管理")]
    [DataHandler(ModuleOP.Details, "浏览", 0)]
    [DataHandler(ModuleOP.Create, "新增", 1)]
    [DataHandler(ModuleOP.Edit, "修改", 2)]
    [DataHandler(ModuleOP.Delete, "删除", 3)]
    [DataHandler(ModuleOP.Refresh, "删除", 4)]
    [DataHandler("Scan", "扫描", 5, "alert('test')")]
    public partial class SubSystemIndexModel
    {

        /// <summary>
        /// 主键Id
        /// </summary>
        /// <value>主键Id</value>
        [Column(Hidden = true)]
        public Guid Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        /// <value>名称</value>
        [Column(Width = 100, Text = "名称", Locked = true, SearchFor = true)]
        public string Name { get; set; }

        /// <summary>
        /// 系统代码
        /// </summary>
        [Column(Width = 120, Text = "系统代码")]
        public string Code { get; set; }

        /// <summary>
        /// 服务地址
        /// </summary>
        [Column(Width = 220, Text = "服务地址")]
        public string ServUrl { get; set; }
        /// <summary>
        /// 用于OAuth的ClientID
        /// </summary>
        [Column(Width = 120, Text = "ClientId")]
        public string ClientId { get; set; }
        /// <summary>
        /// 用于OAuth的ClientSecret
        /// </summary>
        [Column(Width = 120, Text = "Secret")]
        public string ClientSecret { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Column(Text = "备注")]
        public string Remark { get; set; }



    }

    public partial class SubSystemIndexModel : SharpList
    {
        public SubSystemIndexModel()
        {
            this.Feature = ListFeature.MultiSelect | ListFeature.Paging;
        }

    }
}